package com.sunfield.myglide;


import android.app.Activity;
import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;

import com.bumptech.glide.Glide;

/**
 * Created by wxl on 2017/2/7.
 */

public class MyGlide {
    public static MyRequestManager with(Fragment fragment) {
        return new MyRequestManager(Glide.with(fragment));
    }

    public static MyRequestManager with(android.app.Fragment fragment) {
        return new MyRequestManager(Glide.with(fragment));
    }

    public static MyRequestManager with(FragmentActivity activity) {
        return new MyRequestManager(Glide.with(activity));
    }

    public static MyRequestManager with(Activity activity) {
        return new MyRequestManager(Glide.with(activity));
    }

    public static MyRequestManager with(Context context) {
        return new MyRequestManager(Glide.with(context));
    }
}
